import request from '@/utils/request'

// 查询劳动教育学分列表
export function listScore(query) {
  return request({
    // url: '/educationManager/score/list',
    url: '/labour/score/getScoreList2',
    method: 'get',
    params: query
  })
}
// 新增时查询下拉列表
export function getProjectlist() {
  return request({
    url: '/project/getProjectlist',
    method: 'get',
  })
}

// 查询劳动教育学分详细
export function getScoreDetail(scoreId) {
  return request({
    // url: '/educationManager/score/' + scoreId,
    url: '/labour/score/getScoreByScoreId/' + scoreId,
    method: 'get'
  })
}

// 新增劳动教育学分,传数组2
export function addScore(data) {
  return request({
    // url: '/educationManager/score',
    url: '/labour/score/addScore2',
    method: 'post',
    data: data
  })
}

// 修改劳动教育学分
export function updateScore(data) {
  return request({
    // url: '/educationManager/score',
    url: '/labour/score/editScore',
    method: 'put',
    data: data
  })
}

// 删除劳动教育学分
export function delScore(scoreId) {
  return request({
    // url: '/educationManager/score/' + scoreId,
    url: '/labour/score/' + scoreId,
    method: 'delete'
  })
}
